import Vue from 'vue'
import App from './App.vue'
//引入全局样式表
import '@/assets/css/global.css'
//引入vue-router组件
import router from '@/router/index'
// 引入vuex状态管理
import store from "@/store";
//引入vantui
import '@/plugins/vantui';

//添加路由权限过滤器
import '@/util/permission';

import hljs from 'highlight.js'
import 'highlight.js/styles/googlecode.css' //样式文件
Vue.directive('highlight',function (el) {
  let blocks = el.querySelectorAll('pre code');
  blocks.forEach((block)=>{
    hljs.highlightBlock(block)
  })
})

Vue.config.productionTip = false

//Vue.use(Highlight);
new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
